<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * @property int $deletetime
 * @property int $goods_id 商品
 * @property int $id
 * @property int $price 积分
 * @property int $sku 库存
 * @property string $createtime
 * @property string $image 规格图片
 * @property string $name 规格名称
 * @property-read \app\model\PointGoods $goods
 * @method static \think\db\Query onlyTrashed()
 * @method static \think\db\Query withTrashed()
 * @mixin \think\Model
 */
class PointGoodsSpec extends Model
{
	use SoftDelete;
	//
	protected $createTime = 'createtime';
	protected $deleteTime = 'deletetime';
	
	function goods()
	{
		return $this->belongsTo(PointGoods::class, 'goods_id');
	}
}
